

package blogs.eidos.cloud.framework.common.enums;

/**
 * 层级枚举
 *
 * @author Eidos
 * @date 2019-10-24
 **/
public enum MenuLevelEnum implements BaseEnum {
    /**
     * 顶层导航
     **/
    ZERO(0, "顶层"),
    /**
     * 一级菜单
     **/
    ONE(1, "一级菜单"),
    /**
     * 二级菜单
     **/
    TWO(2, "二级菜单"),
    /**
     * 功能菜单
     **/
    THREE(3, "三级菜单"),
    /**
     * 功能菜单
     **/
    FOUR(4, "四级菜单");

    private Integer code;
    private String desc;

    MenuLevelEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }
}
